package com.gxa.modules.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxa.modules.entity.CrmDepartment;
import com.gxa.modules.mapper.DepartmentMapper;
import com.gxa.modules.service.DepartmentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class DepartmentServiceImpl implements DepartmentService {
    @Autowired
    private DepartmentMapper departmentMapper;
    @Override
    public List<CrmDepartment> findAll() {

        List<CrmDepartment> crmDepartments=departmentMapper.findAll();
        return crmDepartments;
    }
}
